<?php

$name = $_GET['name'];
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'root';
$database = 'students';

$conn  = mysqli_connect($dbhost, $dbuser, $dbpass, $database);

if (!$conn) {
    exit('数据库连接失败');
}
    $sql1 = "DELETE FROM id ";
    $retval1 = mysqli_query($conn, $sql1);
   

$sql = "SELECT * FROM id WHERE id = '1'";
$retval = mysqli_query($conn, $sql);
$row = mysqli_fetch_all($retval);
header("Location:./ceshi.php");
if (!$retval) {
    exit('无法写入数据' . mysqli_error($conn));
}
mysqli_close($conn);
